package com.zyk.scaffold.shardingsphere.rw.repositorys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhouyk
 * @since 2023-07-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TOrderItem extends Model<TOrderItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_item_id", type = IdType.AUTO)
    private Long orderItemId;

    private Long orderId;

    private Integer userId;

    private String status;


    @Override
    protected Serializable pkVal() {
        return this.orderItemId;
    }

}
